home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / Apple II / Essentials / APW Interfaces / CInclude / ErrNo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-04  |  1.9 KB  |  57 lines  |  [TEXT/MPS ]

  1. /*
  2.  errno.h -- error return codes
  3.  
  4.  Copyright American Telephone & Telegraph
  5.  Modified and used with permission, Apple Computer Inc.
  6.  Copyright Apple Computer Inc. 1985, 1986, 1987
  7.  All rights reserved.
  8. */
  9.  
  10. #ifndef __ERRNO__
  11. #define __ERRNO__
  12.  
  13. /* @(#)errno.h 2.1 */
  14. /* 3.0 SID # 1.3 */
  15. /*
  16.  * Error codes
  17.  */
  18.  
  19. extern int errno;
  20.  
  21. #define EPERM           1 /* Permission Denied */
  22. #define ENOENT      2 /* No such file or directory */
  23. #define ENORSRC     3 /* No such Resource */
  24. #define EINTR           4 /* interrupted system call */
  25. #define EIO             5 /* I/O error */
  26. #define ENXIO           6 /* No such device or address */
  27. #define E2BIG           7 /* Insufficient space for return argument */
  28. /* #define ENOEXEC  8 /* Exec format error */
  29. #define EBADF           9 /* Bad file number */
  30. /* #define ECHILD   10 /* No children */
  31. /* #define EAGAIN   11 /* No more processes */
  32. #define ENOMEM    12 /* Not enough core */
  33. #define EACCES    13 /* Permission denied */
  34. #define EFAULT    14 /* Bad address */
  35. #define ENOTBLK   15 /* Block device required */
  36. #define EBUSY         16 /* Mount device busy */
  37. #define EEXIST    17 /* File exists */
  38. #define EXDEV         18 /* Cross-device link */
  39. #define ENODEV    19 /* No such device */
  40. #define ENOTDIR   20 /* Not a directory */
  41. #define EISDIR    21 /* Is a directory */
  42. #define EINVAL    22 /* Invalid argument */
  43. #define ENFILE    23 /* File table overflow */
  44. #define EMFILE    24 /* Too many open files */
  45. #define ENOTTY    25 /* Not a typewriter */
  46. #define ETXTBSY   26 /* Text file busy */
  47. #define EFBIG         27 /* File too large */
  48. #define ENOSPC    28 /* No space left on device */
  49. #define ESPIPE    29 /* Illegal seek */
  50. #define EROFS         30 /* READ only file system */
  51. #define EMLINK    31 /* Too many links */
  52. /* #define EPIPE      32 /* Broken pipe */
  53. #define EDOM          33 /* Math arg out of domain of func */
  54. #define ERANGE    34 /* Math result not representable */
  55.  
  56. #endif __ERRNO__
  57.